package beans;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

@XmlRootElement(name = "community")
@XmlSeeAlso({Person.class})
public class Community {
	

	 @XmlElementWrapper(name="people")
	 @XmlElementRef()
	 private List<Person> people;

	 public List<Person> getPeople() {
	  return people;
	 }

	 public Community() {
	  people = new ArrayList<Person>();
	  people.add(new Girl());
	  people.add(new Boy());
	  people.add(new Girl());
	  people.add(new Boy());
	 }
	
}
